package comdto

import "time"

type UserDtoRegister struct {
	Password  string `json:"password" `
	Username  string `json:"username" `
	Email     string `json:"email"`
	EmailCode string `json:"email_code"`
}

type UserDtoLogin struct {
	Password string `json:"password"`
	Email    string `json:"email"`
}

type UserDtoIsLogin struct {
	Token string `json:"token"`
}

type UserDtoInfo struct {
	Id        uint      `gorm:"primaryKey" json:"id,omitempty" gorm:"default:18"`
	QqID      string    `json:"qq_id,omitempty" gorm:"default:''"`
	Avatar    string    `json:"avatar,omitempty" gorm:"default:''"`
	QqKey     string    `json:"qq_key,omitempty" gorm:"default:''"`
	Username  string    `json:"username,omitempty" `
	YunEnd    time.Time `json:"yun_end"  gorm:"column:yun_end"` //云端vip到期时间
	Email     string    `json:"email,omitempty" gorm:"default:''"`
	IDou      int       `json:"i_dou,omitempty" gorm:"default:50"`
	CreatedAt time.Time `json:"created_at" `
	UpdatedAt time.Time `json:"updated_at" `
}
